package reco.db.validation

import reco.db.*

given "a field", {
    field = new DummyField()
}
and "a not null constraint factory", {
    factory = new NotNullConstraintFactory()
}
when "a constraint is created using NotNullConstraintFactory", {
    constraint = factory.createConstraintFor(field)
}
then "the created constraint is not null", {
    constraint.shouldNotBe null
}
and "is an instance of NotNullConstraint", {
    constraint.shouldBeA NotNullConstraint
}
